package com.changpay.zywy.ui.activity.serivce

import com.changpay.zywy.R
import com.changpay.zywy.base.BaseActivity
import kotlinx.android.synthetic.main.activity_jie_suan_ka_detail.*
import kotlinx.android.synthetic.main.title_layout.*
import org.jetbrains.anko.sdk27.coroutines.onClick


class JieSuanKaDetailActivity : BaseActivity() {
    override fun attachLayoutRes(): Int {
        return R.layout.activity_jie_suan_ka_detail
    }


    override fun initData() {
        tv_title.text = "申请结算卡修改"
        iv_back.setOnClickListener { finish() }
        tv_shop_id.text = intent.getStringExtra("merchant_id")
        tv_card_number.text = intent.getStringExtra("card_id")
        tv_bank_type.text = intent.getStringExtra("deposit_bank")
        tv_bank_name.text = intent.getStringExtra("bank_branch")
        tv_phone.text = intent.getStringExtra("phone_num")
        tv_time.text = intent.getStringExtra("created_time")
        tv_reason.text = intent.getStringExtra("audit_describe")

        when( intent.getStringExtra("balance_examine_type"))
        {
            "0" -> tv_status.text = "待审核"
            "1" -> tv_status.text = "审核通过"
            "2" -> tv_status.text = "审核失败"
        }

    }

    override fun initView() {
        iv_back.onClick { finish() }
    }

    override fun start() {

    }
}
